package com.sky.controller.admin;

import com.sky.result.Result;
import com.sky.service.admin.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dispatch")
public class DispatchController {
    @Autowired
    private CommonService commonService;
    @GetMapping("/loadRouteInfo")
    public Result<String>loadRouteInfo(String tradeNo,Long courierId){
      String adr =  commonService.loadRouteInfo(tradeNo,courierId);
      return Result.success(adr);
    }
}
